import {BasicColumn, FormSchema} from '@/components/table';

export const columns: BasicColumn[] = [
  {
    title: '代理商名称',
    dataIndex: 'companyName',
    width: 200,
  },
  {
    title: '联系人',
    dataIndex: 'linkMan',
    width: 200,
  },
  {
    title: '联系电话',
    dataIndex: 'linkTel',
    width: 200,
  },
  {
    title: '地址',
    dataIndex: 'companyAddress',
    width: 200,
  },
  {
    title: '评估总次数',
    dataIndex: 'busTotalNum',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'companyName',
    label: '代理商名称',
    component: 'Input',
    colProps: {span: 3}
  }
];

export const formSchema: FormSchema[] = [
  {
    label: '代理商名称',
    field: 'companyName',
    component: 'Input',
    required: true,
  },
  {
    label: '联系人',
    field: 'linkMan',
    component: 'Input',
    required: true,
  },
  {
    label: '联系电话',
    field: 'linkTel',
    component: 'Input',
    required: true,
  },
  {
    label: '地址',
    field: 'companyAddress',
    component: 'Input',
    required: true,
  },
  {
    label: '评估总次数',
    field: 'busTotalNum',
    component: 'Input',
    required: true,
  }
];
